package com.czxy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 网站快报 -- news
 * @author Liuyunqin 17674029449@163.com
 * @date 2018/12/20 8:36
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_news")
public class News {

    @Column(name = "id")
    private Integer id;

    @Column(name = "title")
    private String title;

    /**
     * 内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 作者
     */
    @Column(name = "author")
    private String author;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date created_at;

    /**
     * 更新时间
     */
    @Column(name = "updated_at")
    private Date updated_at;

}
